tywx.HttpUtil = {
    httpPost: function(t, a) {
        tywx.IsWechatPlatform() && wx.request({
            url: t.url,
            data: t.postData,
            header: t.header,
            method: "POST",
            dataType: "json",
            success: function(t) {
                200 == t.statusCode && t.data && t.data.hasOwnProperty("/api/bilog5/clientlog") && t.data["/api/bilog5/clientlog"];
            },
            fail: function(t) {}
        });
    },
    httpGet: function(t, a, e) {
        tywx.IsWechatPlatform() && (tywx.LOGD("ty.HttpUtil.httpGet", "url:" + t.url), wx.request({
            url: t.url,
            method: "GET",
            success: function(t) {
                200 == t.statusCode ? a && a(t.data) : tywx.LOGD("ty.HttpUtil.httpGet", "statusCode:" + t.statusCode);
            },
            fail: function(a) {
                tywx.LOGD("ty.HttpUtil.httpGet", "post error! " + t.url), e && e(a);
            }
        }));
    }
};